﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Lion.WeiXin.Core.Models
{
   
    /// <summary>
    /// 指令
    /// </summary>
   public class CommandModel :BaseModel
    {   
      
       /// <summary>
       /// 指令关键字
       /// </summary>
       public string Code { get; set; }

       /// <summary>
       /// 指令匹配规则
       /// </summary>
       public string MatchRule { get; set; }      

       /// <summary>
       /// 指令备注
       /// </summary>
       public string Remark { get; set; }

       /// <summary>
       /// 指令执行动作
       /// </summary>
       public string Action { get; set; }

       /// <summary>
       /// 消息类型
       /// </summary>
       public string MsgType { get; set; }
       /// <summary>
       /// 保存回复内容的XML节点数据 
       /// </summary>
       public string ReponseXML { get; set; }

        //文本： <Content><![CDATA[你好]]></Content>
        //图片：<Image><MediaId><![CDATA[media_id]]></MediaId></Image>
        //voice：<Voice><MediaId><![CDATA[media_id]]></MediaId></Voice>
        // video：<Video><MediaId><![CDATA[media_id]]></MediaId><Title><![CDATA[title]]></Title><Description><![CDATA[description]]></Description></Video> 
        //music：<Music><Title><![CDATA[TITLE]]></Title><Description><![CDATA[DESCRIPTION]]></Description><MusicUrl><![CDATA[MUSIC_Url]]></MusicUrl><HQMusicUrl><![CDATA[HQ_MUSIC_Url]]></HQMusicUrl><ThumbMediaId><![CDATA[media_id]]></ThumbMediaId></Music>
       /* 图文：
<ArticleCount>2</ArticleCount>
<Articles>
<item>
<Title><![CDATA[title1]]></Title> 
<Description><![CDATA[description1]]></Description>
<PicUrl><![CDATA[picurl]]></PicUrl>
<Url><![CDATA[url]]></Url>
</item>
<item>
<Title><![CDATA[title]]></Title>
<Description><![CDATA[description]]></Description>
<PicUrl><![CDATA[picurl]]></PicUrl>
<Url><![CDATA[url]]></Url>
</item>
</Articles>
        */

    }
}
